Private Sub sock_DataArrival(Index As Integer, ByVal bytesTotal As Long)
'incomming data,to recive it and send it to get decoded
Dim new_data As String
sock(Index).GetData new_data
DoEvents
decode_data new_data, Index
End Sub
Private Sub sock_Error(Index As Integer, ByVal Number As Integer, Description As String, ByVal Scode As Long, ByVal Source As String, ByVal HelpFile As String, ByVal HelpContext As Long, CancelDisplay As Boolean)
'Log out clients if error on port
logout_client Index, "Error - " & Description
End Sub
Private Sub sock_ConnectionRequest(Index As Integer, ByVal requestid As Long)